#ifndef __AUV_CTRL__
#define __AUV_CTRL__

#include <stdio.h>
#include <windows.h>
#include <string.h>

#if 1   //开启DEBUG打印
#define LOGD(...) printf(__VA_ARGS__)
#else   //关闭DEBUG打印
#define LOGD(...)
#endif

#if 1   //开启ERROR打印
#define LOGE(...) printf(__VA_ARGS__)
#else   //关闭ERROR打印
#define LOGE(...)
#endif

//缓冲区大小
#define BUF_SIZE    2048
#define EXIT_STR    "exit"
#define I_EXIT      "I exit.\r\n"
#define I_RECEIVE   "I receive.\r\n"

HANDLE OpenSerial(const char *com,int baud,int byteSize,int parity,int stopBits);
BOOL ReadSerial(HANDLE comHandle);
#endif
